#include <bits/stdc++.h>
using namespace std;
#define int long long
void solve()
{
    int a,b,c,d;
    cin>>a>>b>>c>>d;
    int mx=max(a,b);
    mx=max(mx,c);
    if((d==1&&mx==a)||(d==2&&mx==b)||(d==3&&mx==c))cout<<"Yes";
    else cout<<"No";
}
signed main()
{
    //ios::sync_with_stdio(false);
    //cin.tie(nullptr);
    int T=1;
    //cin>>T;
    while(T--)
    {
       solve();
    }
    return 0;
}